package com.quoo.struts2.action;

import com.opensymphony.xwork2.ActionSupport;
import com.quoo.struts2.domain.User;
import com.quoo.struts2.service.UserService;

public class RemoveUserAction extends ActionSupport {

	private User user;
	private UserService service;
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public UserService getService() {
		return service;
	}
	public void setService(UserService service) {
		this.service = service;
	}
	
	@Override
	public String execute() throws Exception {
		this.service.delete(user);
		return SUCCESS;	
	}
}
